package com.zqh.myfmmall.controller;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zqh.myfmmall.entity.IndexImg;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.service.IndexImgService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 轮播图 (IndexImg)表控制层
 *
 * @author KONO 曾淇杭哒！
 * @since 2022-01-20 20:52:59
 */
@RestController
@RequestMapping("indexImg")
@Api(tags = "轮播图管理")
public class IndexImgController{
    /**
     * 服务对象
     */
    @Resource
    private IndexImgService indexImgService;


    /**
     * 功能描述:
     * 返回所有可用的首页轮播图
     *
     * @param
     * @return com.zqh.myfmmall.result.Result
     * @author kono曾淇杭哒！
     * @date 2022/1/24 23:14
     */
    @GetMapping
    public Result selectAll() {
        return indexImgService.listIndextImages();
    }


}

